<template>
  <div class="com">
    subapp31 home token {{$store.state.token}}
    <p>
      <button @click="goTo('/subapp32/home')">to subapp32</button>
      <button @click="goTo2('/subapp32/home')">to subapp31</button>
    </p>
    <div>
        <kt-table :tableData="tableData" :columns="columns" :showIndex="true">
          
        </kt-table>
    </div>
  </div>
</template>

<script>
import ktTable from '../../../base3/publicComponents/ktTable.vue'
export default {
  name: "test",
  data(){
    return {
      tableData:[],
      columns:[
                  {prop:"bsm",label:"业务编号",width:160},
                 {prop:"certificateNo",label:"登记证明号",width:300},
                 {prop:"estateUnit",label:"单元号",width:270},
                 {prop:"certificateNo2",label:"备案号",width:160},
      ],

    }
  },
  components:{
    ktTable
  },
  methods: {
    goTo(path) {
      console.log(path);
      // this.$router.push(path)
      history.pushState({ id: 32 }, "", path);
    },
    goTo2(path) {
      console.log(path);
      // this.$router.push(path)
      // history.pushState({id:32}, "", path)
      // this.toPath(path)
      this.$router.push("/");
      // test 555
    },
  },
};
</script>
  
  <style scoped>
</style>